@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(90deg, #fcff9e 0%, #c67700 100%);
  background: linear-gradient(90deg, #e3ffe7 0%, #d9e7ff 100%);
  background: #333;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0 auto;
  min-height: 100vh;
}

h1 {
  font-weight: normal;
  font-size: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

h1 span {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  margin-left: 3px;
  margin-top: 0.2rem;
}

.main {
  max-width: 1000px;
  min-width: 800px;
  background-color: #000;
  color: #f1f1f1;
  padding: 1rem;
}

.todo-list {
  list-style-type: none;
  overflow-y: auto;
  max-height: 400px;
  scrollbar-color: #333 #ff6666;
  scrollbar-width: thin;
}

.todo {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  user-select: none;
}

.todo-item {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  width: 100%;

}

.todo-item span {
  flex-grow: 1;
  text-align: center;
  min-width: 50px;
}

.todo-item span.date_field {
  flex-grow: 2;
  text-align: center;
  min-width: 200px;
}

.todo-item div {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.li-none {
  display: none;
}

.actions {
  display: flex;
  gap: 1rem;
}

input,
button {
  font: inherit;
}

button {
  cursor: pointer;
  background: none;
  padding: 0.25rem;
  border: none;
  color: #fff;
}

input {
  padding: 0 0.5em;
  height: 3rem;
  width: 100%;
}

.todo-create {
  margin-top: 1.5rem;
}

.todo-edit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.completed {
  text-decoration: line-through;
}